import request from '@/utils/request'
export const getDepartListAPI = () => request.get('/company/department')
// 新增部门
export const addDepartAPI = obj => request.post('/company/department', obj)
// 根据ID查询部门详情 API
export const getDepartAPI = id => request.get(`/company/department/${id}`)
// 修改部门
export const updateDepartAPI = obj => request.put(`/company/department/${obj.id}`, obj)
// 删除接口
export const delDepartAPI = id => request.delete(`/company/department/${id}`)
